<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:t="http://myfaces.apache.org/tomahawk">
<body>
<ui:composition template="../template/adminTemplate.jsp">
	<ui:define name="title">
		Create a Trip
	</ui:define>
	<ui:define name="body">
		<h:form id="tripForm">
			<h:panelGrid id="panel" columns="2">
				<f:facet name="header">
					<h:outputText value="Trip" />
				</f:facet>
	
				<h:outputText value="Title" />
				<h:inputText value="#{tripBean.title}" id="title" />

				<h:outputText value="Key" />
				<h:inputText value="#{tripBean.key}" id="key" />
	
				<h:outputText value="Description" />
				<h:inputText value="#{tripBean.description}" id="description" />
	
				<h:outputText value="Start Date" />
				<t:inputCalendar value="#{tripBean.startDate}" id="startDate"
					renderAsPopup="true" />
	
				<h:outputText value="End Date" />
				<t:inputCalendar value="#{tripBean.endDate}" id="endDate"
					renderAsPopup="true" />
	
				<f:facet name="footer">
					<h:commandButton action="#{listTripBacking.saveTrip}" value="Create" />
				</f:facet>
			</h:panelGrid>
		</h:form>
	</ui:define>
</ui:composition>
</body>
</html>
